@echo off

set part=project
echo %buildType%|findstr %part% >nul
if %errorlevel% equ 0 (
	goto Execute
) else (
	goto Skip
)




:Execute
::复制apk文件
set outputPath=%var_output_project%\launcher\build\outputs\apk
del %var_path_workspace%\*.apk
cd /d %outputPath%
for /f "delims=" %%i in ('dir /b /a-d /s "*.apk"') do echo f | xcopy  %%i %var_path_workspace%\%var_apk_name%_%%~nxi /s /e /y
del %outputPath%\*.apk /f /s /q


::复制abb文件
set outputPath=%var_output_project%\launcher\build\outputs\bundle\release
del %var_path_workspace%\*.aab
cd /d %outputPath%
for /f "delims=" %%i in ('dir /b /a-d /s "*.aab"') do echo f | xcopy  %%i %var_path_workspace%\%var_apk_name%_%%~nxi /s /e /y
del %var_output_project%\*.aab /f /s /q


:Skip
exit 0